package com.xiaotu.service.impl;

import com.xiaotu.mapper.PlayerImageMapper;
import com.xiaotu.service.PlayerImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author zhangxiao
 * @create 2022-03-15 15:04
 */
@Service
@Transactional
public class PlayerImageServiceImpl implements PlayerImageService {

    @Autowired
    private PlayerImageMapper playerImageMapper;

    @Override
    public String getImageUrlById(Integer imageId) {
        return playerImageMapper.selectByPrimaryKey(imageId).getImageUrl();
    }

    @Override
    public Object getPlayerImages() {
        return playerImageMapper.selectAll();
    }
}
